package com.ttscm.srds.pojo;

/**
 * @version:
 * @author:
 * @className:
 * @packageName:
 * @description:
 * @date: 2022/07/22
 */
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    private Integer code = 999;
    private String message;

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super(message);
        this.message = message;
    }

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "BusinessException {" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}